package Student4;

// StudentSystem.java
 public class StudentSystem {
    public static void main(String[] args) {
        Student4 stu1 = new Student4("2025005", "孙七", "大数据技术");
        stu1.setScore(85);
        Student4 stu2 = new Student4("2025006", "周八", "软件技术");
        stu2.setScore(92);
        Student4 stu3 = new Student4("2025007", "吴九", "云计算");
        stu3.setScore(78);
        stu3.setScore(105);
        Student4[] students = {stu1, stu2, stu3};
        double total = 0;
        System.out.println("学生信息列表：");
        for (Student4 s : students) {
            s.showInfo();
            total += s.getScore();
        }
        System.out.println("平均分：" + (total / students.length));


    }
}